<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<li id="rig_header" class="validationLiClass">报表校核设置</li>
<div style="right:5px;padding:6px; position:absolute;">
	<input type="button" value="保存" id="but_save_validation" class="btn btn-primary" onclick="saveValidationFormula();"/>
	<input type="button" value="关闭" id="but_close_validation" class="btn btn-primary" onclick="closeValidationDiv();"/>
</div>
<span  id="rig_text_header">
	<!-- <a id="but_close" href="#" onclick="closeValidationDiv();"></a> -->
	<!-- <a id="but_save_validation" href="#" onclick="saveValidationFormula();"></a> -->
	
</span>

<div id="rig_tag">
	<ul>
		<li class="pop-up_tag_a" id="pop-up_tag_a_validation" onclick="jspShowTabValidation('pop-up_tag_a_validation');">表内校核</li>
        <li class="pop-up_tag_hov" id="pop-up_tag_b_validation" onclick="jspShowTabValidation('pop-up_tag_b_validation');">表间校核</li>
        <div id="pop-up_tag_a_validation_div">
        	<li id="pop-up_tag_tab">
	       		<span  id="pop-up_tag_header">
	       			<li class="pop-up_tag_validation_a" id="pop-up_tag_a_validation_nei" onclick="jspShowTabValidationNei('pop-up_tag_a_validation_nei');">行校核</li>
		        	<li class="pop-up_tag_validation_hov" id="pop-up_tag_b_validation_nei" onclick="jspShowTabValidationNei('pop-up_tag_b_validation_nei');">列校核</li>
		        	<li class="pop-up_tag_validation_hov" id="pop-up_tag_c_validation_nei" onclick="jspShowTabValidationNei('pop-up_tag_c_validation_nei');">单元格校核</li>
	       			
	       			<div id="pop-up_tag_a_validation_nei_div">
	       				<li id="pop-up_tag_tab">
	       					<span  id="pop-up_tag_header">
	       						<div>
				       				<span style="color:red">注：行校核公式需要严格按照指定方式填写，如不按指定方式填写将不会生成相应计算公式</span>
				       				<span style="color:red">填写规则：1)1栏>=2栏+3栏+4栏，对应填写为1>=2+3+4;2)1栏=2栏+3栏+4栏至6栏之和，对应填写为1=2+3+4~6;
				       				3)1栏分别大于2栏、3栏、4栏，分别填写为1>2，然后再输入1>3,然后再输入1>4</span>
				       			</div>
				       			<div style="height:10px"></div>
				       			<div>
				       				<textarea rows="3" cols="70" id="aRowValidationFormula"></textarea>
				       				<a id="but_add" href="#" onclick="addRowValidationFormula();"></a>
				       			</div>
	       					</span>
	       					<table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="hangValidationTable">
				            	<tr>
						            <td class="td_grey_header" align="center">行校核公式</td>
						            <td style="display:none">存入MAP中的ID</td>
						            <td class="td_grey_header" align="center">操作</td>
						          </tr>
					        </table>
	       				</li>
	       			</div>
	       			<div id="pop-up_tag_b_validation_nei_div" style="display:none">
	       				<li id="pop-up_tag_tab">
	       					<span  id="pop-up_tag_header">
	       						<div>
				       				<span style="color:red">注：列校核公式需要严格按照指定方式填写，如不按指定方式填写将不会生成相应计算公式</span>
				       				<span style="color:red">填写规则：1)A列>=B列+C列+D列，对应填写为A>=B+C+D;2)A列=B列+C列+D列至G列之和，对应填写为A=B+C+D~G;
				       				3)A列分别大于C列、D列、E列，分别填写为A>B，然后再输入A>C,然后再输入A>D</span>
				       			</div>
				       			<div style="height:10px"></div>
				       			<div>
				       				<textarea rows="3" cols="70" id="aColValidationFormula"></textarea>
				       				<a id="but_add" href="#" onclick="addColValidationFormula();"></a>
				       			</div>
	       					</span>
	       					<table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="lieValidationTable">
				            	<tr>
						            <td class="td_grey_header" align="center">列校核公式</td>
						            <td style="display:none">存入MAP中的ID</td>
						            <td class="td_grey_header" align="center">操作</td>
						          </tr>
					        </table>
	       				</li>
	       			</div>
	       			<div id="pop-up_tag_c_validation_nei_div" style="display:none">
	       				<li id="pop-up_tag_tab">
	       					<span  id="pop-up_tag_header">
	       						<div>
				       				<span style="color:red">注：单元格校核公式需要严格按照指定方式填写，如不按指定方式填写将不会生成相应计算公式,该公式不支持"~"符号</span>
				       				<span style="color:red">填写规则：1)A1大于等于C1和D1之后，对应填写为A1>=C1+D1;2)A1分别大于B1、C1、D1,分别填写为A1>B1，然后再输入A1>C1,然后再输入A1>D1</span>
				       			</div>
				       			<div style="height:10px"></div>
				       			<div>
				       				<textarea rows="3" cols="70" id="aCellValidationFormula"></textarea>
				       				<a id="but_add" href="#" onclick="addCellValidationFormula();"></a>
				       			</div>
	       					</span>
	       					<table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="cellValidationTable">
				            	<tr>
						            <td class="td_grey_header" align="center">单元格校核公式</td>
						            <td style="display:none">存入MAP中的ID</td>
						            <td class="td_grey_header" align="center">操作</td>
						          </tr>
					        </table>
	       				</li>
	       			</div>
	       		
	       		</span>
	       	</li>
        </div>
        <div id="pop-up_tag_b_validation_div" style="display:none">
        	<li id="pop-up_tag_tab">
        		<span  id="pop-up_tag_header">
		        	<div>
		        		&nbsp;&nbsp;公式左边：<input type="text" id="validationFormulaLeftText" />
		        		&nbsp;&nbsp;公式符号：<select id="valudationFormulaSymbol">
					        					<option value="1">=</option>
					        					<option value="2">></option>
					        					<option value="3"><</option>
					        					<option value="4">>=</option>
					        					<option value="5"><=</option>
					        				 </select>
					    &nbsp;&nbsp;公式右边：<a id="but_add" href="#" onclick="addBiaojianJiaoheRight();"></a>
					    <a id="but_generateFormula" href="#" onclick="createTableValidationFormula();"></a>
					          关系：<select name="relationSelectName" id="relationSelectName">
						    	<option value="0">请选择</option>
						    	<option value="1">相加</option>
						    	<option value="2">分别</option>
					    	</select>
					    <br></br>
					    <table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="biaojianValidationTable">
						      <tr>
					            <td class="td_grey_header" align="center">所属报表</td>
					            <td class="td_grey_header" align="center">表达式</td>
					            <td class="td_grey_header" align="center">操作</td>
					          </tr>
					    </table>
					    <span  id="pop-up_tag_header">
					    	<div style="height:10px"></div>
       					</span>
       					<table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="biaojianValidationFormulaTable">
			            	<tr>
					            <td class="td_grey_header" align="center">表间校核公式</td>
					            <td style="display:none">存入MAP中的ID</td>
					            <td class="td_grey_header" align="center">操作</td>
					        </tr>
				        </table>
		        	</div>
		        	
			    </span>
        		
	       	</li>
        </div>
    </ul>
</div>
</body>
</html>